# Source this file to set things up for IQE

set IQDIR=/opt/IQ # Edit this line to reflect your installation
if ($PATH !~ *${IQDIR}/bin*) then
  echo Adding $IQDIR/bin to your PATH
  setenv PATH $IQDIR/bin:$PATH
endif

# If you don't use Matlab, delete the following:
if (! $?MATLABPATH) then
  echo Setting your MATLABPATH to $IQDIR/matlab
  setenv MATLABPATH $IQDIR/matlab
else if (${MATLABPATH} !~ *${IQDIR}/matlab*) then
  echo Adding ${IQDIR}/matlab to your MATLABPATH 
  setenv MATLABPATH $IQDIR/matlab:$MATLABPATH
endif

#If you don't use Octave, delete the following:
if (! -e $HOME/.octaverc || ! { grep -q $IQDIR/octave $HOME/.octaverc } ) then
  echo Adding ${IQDIR}/octave to your Octave path in $HOME/.octaverc
  (echo addpath $IQDIR/octave; echo savepath; echo quit) | \
    octave >&/dev/null
endif
